package com.guoyw.seata.storage.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * author: guoyw
 * create: 2020-09-19 17:34
 **/
@Data
public class TStorage extends Model<TStorage>{
  
  private static final long serialVersionUID = 1L;
  
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  private String commodityCode;
  private String name;
  private Integer count;
  
  @Override
  protected Serializable pkVal(){
    return this.id;
  }
}
